﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace HigLabo.Net.WindowsLive
{
    /// <summary>
    /// 
    /// </summary>
    public static class Common
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="jsons"></param>
        /// <returns></returns>
        public static Dictionary<String, Object> SetData(String jsons)
        {
            Dictionary<String, Object> result = null;
            if (jsons != null)
                result = JsonConvert.DeserializeObject<Dictionary<String, Object>>(jsons);
            return result == null ? new Dictionary<String, Object>() : result;
        }
    }
}
